﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CheckBoxHeaderDemo
{
    public partial class MessagePrompt : Form
    {
        public bool isOk = false;
        public MessagePrompt()
        {
            InitializeComponent();
        }
        public MessagePrompt(demo.ServiceRef.QueryPatientInfoOut patinfo)
        {
            InitializeComponent();
            this.labelName.Text = patinfo.PatientName;
            this.labelSex.Text = patinfo.PatientSex;
            this.labelAge.Text = patinfo.PatientAge;
        }
        private void button2_Click(object sender, EventArgs e)
        {
            isOk = true;
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            isOk = false;
            this.Close();
        }
    }
}
